package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.group02.community.entity.user.SysUser;
import com.group02.community.entity.vo.queryVO.QueryParamsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<SysUser> {
//    /**
//     * 根据用户名查询菜单
//     * @param name
//     * @return
//     */
//    List<SysMenu> getMenusByUsername(String name);
//
//    /**
//     * 根据用户名查询用户信息
//     * @return
//     */
//    SysUser getSysUserByUsername(String userName);

    /**
     * 用户分页
     * @param page
     * @param qp
     * @return
     */
    IPage<SysUser> selectUserPage(IPage<SysUser> page, @Param("qp") QueryParamsVO qp);

    void emptyDatabase();

    /**
     * 逻辑删除
     * @param ids
     */
    void removeByAllIds(String ids);
}
